<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{guichetsmsgs['navigation.back']}" action="/jsf/guichets/listGuichetss.xhtml"/>
		
			<p:panel header="#{guichetsmsgs['guichets.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{guichetsmsgs['guichets.guietablissement.title']}:*" />
							<h:inputText id="guichets_guietablissement" value="#{GuichetsComponent.guichets.guiEtablissement}" required="true" label="guichets_guietablissement" />
						<h:outputText value="#{guichetsmsgs['guichets.guiguichet.title']}:*" />
							<h:inputText id="guichets_guiguichet" value="#{GuichetsComponent.guichets.guiGuichet}" required="true" label="guichets_guiguichet" />
						<h:outputText value="#{guichetsmsgs['guichets.guipays.title']}:*" />
							<h:inputText id="guichets_guipays" value="#{GuichetsComponent.guichets.guiPays}" required="true" label="guichets_guipays" />
						<h:outputText value="#{guichetsmsgs['guichets.guidomiciliation.title']}:" />
							<h:inputText id="guichets_guidomiciliation" value="#{GuichetsComponent.guichets.guiDomiciliation}" required="false" label="guichets_guidomiciliation" />
						<h:outputText value="#{guichetsmsgs['guichets.guiadresseprelevement.title']}:" />
							<h:inputText id="guichets_guiadresseprelevement" value="#{GuichetsComponent.guichets.guiAdressePrelevement}" required="false" label="guichets_guiadresseprelevement" />
						<h:outputText value="#{guichetsmsgs['guichets.guicontactprelevement.title']}:" />
							<h:inputText id="guichets_guicontactprelevement" value="#{GuichetsComponent.guichets.guiContactPrelevement}" required="false" label="guichets_guicontactprelevement" />
						<h:outputText value="#{guichetsmsgs['guichets.guichronotrace.title']}:" />
							<h:inputText id="guichets_guichronotrace" value="#{GuichetsComponent.guichets.guiChronoTrace}" required="false" label="guichets_guichronotrace" />
						<h:outputText value="#{guichetsmsgs['guichets.guinomguichet.title']}:" />
							<h:inputText id="guichets_guinomguichet" value="#{GuichetsComponent.guichets.guiNomGuichet}" required="false" label="guichets_guinomguichet" />
						<h:outputText value="#{guichetsmsgs['guichets.guicodenouvetablissement.title']}:" />
							<h:inputText id="guichets_guicodenouvetablissement" value="#{GuichetsComponent.guichets.guiCodeNouvEtablissement}" required="false" label="guichets_guicodenouvetablissement" />
						<h:outputText value="#{guichetsmsgs['guichets.guinouvguichet.title']}:" />
							<h:inputText id="guichets_guinouvguichet" value="#{GuichetsComponent.guichets.guiNouvGuichet}" required="false" label="guichets_guinouvguichet" />
						<h:outputText value="#{guichetsmsgs['guichets.guilocalitecompensation1.title']}:" />
							<h:inputText id="guichets_guilocalitecompensation1" value="#{GuichetsComponent.guichets.guiLocaliteCompensation1}" required="false" label="guichets_guilocalitecompensation1" />
						<h:outputText value="#{guichetsmsgs['guichets.guilocalitecompensation2.title']}:" />
							<h:inputText id="guichets_guilocalitecompensation2" value="#{GuichetsComponent.guichets.guiLocaliteCompensation2}" required="false" label="guichets_guilocalitecompensation2" />
						<h:outputText value="#{guichetsmsgs['guichets.guidebutvalidite.title']}:" />
							<p:calendar id="guichets_guidebutvalidite" value="#{GuichetsComponent.guichets.guiDebutValidite}" required="false"  converter="primefacesCalendarConverter" />
						<h:outputText value="#{guichetsmsgs['guichets.guifinvalidite.title']}:" />
							<p:calendar id="guichets_guifinvalidite" value="#{GuichetsComponent.guichets.guiFinValidite}" required="false"  converter="primefacesCalendarConverter" />
						<h:outputText value="#{guichetsmsgs['guichets.guidisparition.title']}:" />
							<p:calendar id="guichets_guidisparition" value="#{GuichetsComponent.guichets.guiDisparition}" required="false"  converter="primefacesCalendarConverter" />
						<h:outputText value="#{guichetsmsgs['guichets.guinatureguichet.title']}:" />
							<h:inputText id="guichets_guinatureguichet" value="#{GuichetsComponent.guichets.guiNatureGuichet}" required="false" label="guichets_guinatureguichet" />
						<h:outputText value="#{guichetsmsgs['guichets.guicodesituation.title']}:" />
							<h:selectBooleanCheckbox id="guichets_guicodesituation" value="#{GuichetsComponent.guichets.guiCodeSituation}" required="false" label="guichets_guicodesituation" />
						<h:outputText value="#{guichetsmsgs['guichets.guitiers.title']}:" />
							<h:inputText id="guichets_guitiers" value="#{GuichetsComponent.guichets.guiTiers}" required="false" label="guichets_guitiers" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{guichetsmsgs['navigation.save']}" action="#{GuichetsComponent.saveGuichets(GuichetsComponent.guichets)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>